﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Order_CountTranCost : System.Web.UI.Page
{
    private string TranerCode
    {
        get
        {
            return Request.QueryString["traner"] != null ? Request.QueryString["traner"].ToString() : "";
        }
    }

    private string CityCode
    {
        get
        {
            return Request.QueryString["city"] != null ? Request.QueryString["city"].ToString() : "";
        }
    }

    private decimal Weight
    {
        get
        {
            return Request.QueryString["weight"] != null ? Convert.ToDecimal(Request.QueryString["weight"].ToString()) : 0.00M;
        }
    }


    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            decimal tranCost = new BLL.TRANERCOST().GetTranCost(this.TranerCode, this.CityCode, Weight);
            Response.Write(tranCost.ToString());
        }
        catch
        {
            Response.Write("false");
        }
    }
}
